//
//  AddKindItemCell.m
//  com.modada.new
//
//  Created by ferver7 on 2019/5/7.
//  Copyright © 2019 ferver7. All rights reserved.
//

#import "AddKindItemCell.h"

@implementation AddKindItemCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
}
- (IBAction)addAction:(id)sender {
    
    self.returnAction(1);
    
    if ([self.numLabel.text isEqualToString:@"0"]) {
        [self.subBtn setBackgroundColor:[UIColor lightGrayColor]];
    }else{
        [self.subBtn setBackgroundColor:KColor(0, 122, 255)];
    }
}
- (IBAction)subAction:(id)sender {
    
    self.returnAction(0);

    if ([self.numLabel.text isEqualToString:@"0"]) {
        [self.subBtn setBackgroundColor:[UIColor lightGrayColor]];
    }else{
        [self.subBtn setBackgroundColor:KColor(0, 122, 255)];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
